<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>05_定位可以越过padding</title>
    <style>
        .outer {
            width: 400px;
            height: 400px;
            background-color: aquamarine;
            padding: 10px;
            border: 10px solid black;
            margin: 10px;
            position: relative;
        }
        .inner {
            width: 100px;
            height: 100px;
            background-color: orange;
            position: absolute;
            left: 0;
            top: 0;
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner">123</div>
    </div>
</body>
</html>